package com.qf.mapper;

import com.qf.entity.SysRole;
import com.qf.entity.SysUser;
import com.qf.entity.SysUserVO;
import com.qf.entity.UserDTO;
import org.apache.ibatis.annotations.Param;


import java.util.List;
import java.util.Set;

public interface UserMapper {
    List<SysUserVO> findAll(UserDTO userDTO) ;
    SysUser userLogin(SysUser sysUser);

    int deleteAll(List<Integer> ids);

    int deleteUser(int id);

    int updateUser(SysUserVO sysUserVO);

    int addUser(SysUser sysUser);
    Set<String> selectAuthsById(int id);

    SysUser loginByName(String username);

    List<SysRole> findRoleByUserId(Integer userId);

    int deleteUserRole(Integer id);

    int addUserRole(@Param("id") Integer id, @Param("roleIds") List<Integer> roleIds);
}
